]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
allView: Always update currentPage
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 6 Aug 2019 22:41:54 +0000 (19:41 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 7 Aug 2019 00:09:13 +0000 (21:09 -0300)
Commit 0f178c3b3dcfe added a shortcirtuit to avoid running
an animation on an invisible actor. However, it introduced
a bug where the current page is not properly updated. That
leads to the wrong set of icons being animated under some
circumstances.

Update the current page even if we bail out early.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/667

js/ui/appDisplay.js

index 5fe1409497309fedea2f930c4e944281456ce679..9947fdcae7471ac612a5b057ae29a667d2267dd8 100644 (file)
@@ -467,6 +467,7 @@ var AllView = class AllView extends BaseAppView {
         if (!this.actor.mapped) {
             this._adjustment.value = this._grid.getPageY(pageNumber);
             this._pageIndicators.setCurrentPage(pageNumber);
+            this._grid.currentPage = pageNumber;
             return;
         }